package com.itheima.pattern.t15_reponsibility.demo1;

/**
 * 小组长类(具体的处理者)
 */
public class GroupLeader extends Handler {

    public GroupLeader() {
        super(0, Handler.NUM_ONE);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天，理由：" + leave.getContent());
        System.out.println("小组长审批：同意");
    }
}
